//
//  SecondViewController.m
//  WisdomZhuHai
//
//  Created by yewei on 13-8-21.
//  Copyright (c) 2013年 wyd. All rights reserved.
//

#import "SecondViewController.h"
#import "Common.h"
#import "StrategyHomeViewController.h"
#import "MobClick.h"
#import "NewStrategyListViewController.h"//新玩法

//const float PAGE_SCROLL_OFFSET = 6.0;
@interface SecondViewController ()

@property (nonatomic,retain) StrategyHomeViewController* strategyHomeViewCtrl;
@property (nonatomic,retain) NewStrategyListViewController *newStrategyList;

@end

@implementation SecondViewController


- (id)init
{
    self = [super init];
    if(self)
    {
        self.tabBarItem.image = [UIImage imageNamed:@"Information/玩法2.png"];
        self.tabBarItem.selectedImage = [UIImage imageNamed:@"Information/玩法1.png"];
        self.title = @"玩法";
    }
    return self;
}

-(void)dealloc
{
    [super dealloc];
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
//    self.gridControl = [[[GridButtonViewController alloc]initWithFrame:self.view.bounds navController:self.navigationController]autorelease];
//    [self.view addSubview:self.gridControl.view];
    
//    self.strategyHomeViewCtrl = [[StrategyHomeViewController alloc] initWithFrame:self.view.bounds];
//    self.strategyHomeViewCtrl.navigationCtrl = self.navigationController;
//    [self.view addSubview:self.strategyHomeViewCtrl.view];
    
//    self.newStrategyList = [[NewStrategyListViewController alloc] initWithFrame:self.view.bounds];
        self.newStrategyList = [[NewStrategyListViewController alloc] init];
    self.newStrategyList.navigationCtrl = self.navigationController;
    [self.view addSubview:self.newStrategyList.view];
}


-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    [MobClick beginLogPageView:@"Strategy"];
}

-(void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [MobClick endLogPageView:@"Strategy"];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
